package com.base.service.impl;

import com.base.mapper.voipmapper.InviteCodeMapper;
import com.base.po.voip.InviteCode;
import com.base.po.voip.InviteCodeExample;
import com.base.service.InviteCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("inviteCodeService")
public class InviteCodeServiceImpl implements InviteCodeService {

    @Autowired
    private InviteCodeMapper inviteCodeMapper;

    @Override
    public int countByExample(InviteCodeExample example) {
        return inviteCodeMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(InviteCodeExample example) {
        return inviteCodeMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return inviteCodeMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(InviteCode record) {
        return inviteCodeMapper.insert(record);
    }

    @Override
    public int insertSelective(InviteCode record) {
        return inviteCodeMapper.insertSelective(record);
    }

    @Override
    public List<InviteCode> selectByExample(InviteCodeExample example) {
        return inviteCodeMapper.selectByExample(example);
    }

    @Override
    public InviteCode selectByPrimaryKey(Integer id) {
        return inviteCodeMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<InviteCode> selectByUserID(String userid) {
        return inviteCodeMapper.selectByUserID(userid);
    }

    @Override
    public List<InviteCode> selectByCode(String code) {
        return inviteCodeMapper.selectByCode(code);
    }

    @Override
    public int updateByExampleSelective(InviteCode record, InviteCodeExample example) {
        return inviteCodeMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(InviteCode record, InviteCodeExample example) {
        return inviteCodeMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(InviteCode record) {
        return inviteCodeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(InviteCode record) {
        return inviteCodeMapper.updateByPrimaryKey(record);
    }
}
